<!DOCTYPE html>
<html>
    <head>
        <title>Issue 5358: Issue summary</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
    </head>
    <body>
        <header>
            <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5358">Issue 5358</a>: Allow pasting HTML into the HTML panel</h1>
        </header>
        <div>
            <section id="content">
                 <iframe src="./content.xml"></iframe>
            </section>
            <section id="description">
                <h3>Steps to reproduce</h3>
                <ol>
                    <li>Open Firebug and switch to the HTML panel</li>
                    <li>Copy this text: <code>&lt;item id="3"&gt;Item Number&lt;/item&gt;</code></li>
                    <li>In the node tree right-click on the <code>#onlyContent</code> element and select
                        <em>Paste XML &gt; Replace Node</em></li>
                    <li>Copy this text: <code>3</code></li>
                    <li>In the node tree right-click on the element with the ID <code>3</code> and select
                        <em>Paste XML &gt; Replace Content</em></li>
                    <li>Copy this text: <code>&lt;item id="2"&gt;2&lt;/item&gt;</code></li>
                    <li>In the node tree right-click on the <code>&lt;root&gt;</code> element and select
                        <em>Paste XML &gt; As First Child</em></li>
                    <li>Copy this text: <code>&lt;item id="4"&gt;4&lt;/item&gt;</code></li>
                    <li>In the node tree right-click on the <code>&lt;root&gt;</code> element and select
                        <em>Paste XML &gt; As Last Child</em></li>
                    <li>Copy this text: <code>&lt;item id="1"&gt;1&lt;/item&gt;</code></li>
                    <li>In the node tree right-click on the element with the ID <code>2</code> and select
                        <em>Paste XML &gt; Before</em></li>
                    <li>Copy this text: <code>&lt;item id="5"&gt;5&lt;/item&gt;</code></li>
                    <li>In the node tree right-click on the element with the ID <code>4</code> and select
                        <em>Paste XML &gt; After</em></li>
                </ol>
                <h3>Expected result</h3>
                <p>The iframe should contain this node structure:</p>
<code>
&lt;root&gt;
    &lt;item&gt;1&lt;/item&gt;
    &lt;item&gt;2&lt;/item&gt;
    &lt;item&gt;3&lt;/item&gt;
    &lt;item&gt;4&lt;/item&gt;
    &lt;item&gt;5&lt;/item&gt;
&lt;/root&gt;
</code>
            </section>
            <footer>
                <!--
                    Your name and your email address (or other contact information) should be placed here.
                    This is important in the case we need to contact you for further reference.
                 -->
                Florent FAYOLLE, florent.fayolle69@gmail.com
            </footer>
        </div>
    </body>
</html>
